package beans;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class SalonBean implements Serializable{

	/**
	 * 
	 */
	private Integer id;
	private static final long serialVersionUID = 1L;
	List<SectorBean> sectores = new ArrayList<SectorBean>();
	
	public SalonBean() {
		super();
		
	}

	public List<SectorBean> getSectores() {
		return sectores;
	}

	public void setSectores(List<SectorBean> sectores) {
		this.sectores = sectores;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((sectores == null) ? 0 : sectores.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SalonBean other = (SalonBean) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (sectores == null) {
			if (other.sectores != null)
				return false;
		} else if (!sectores.equals(other.sectores))
			return false;
		return true;
	}
	
	
}
